<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>EOS.IO: Dual 128 bit Index Table</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="eos-logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">EOS.IO
   &#160;<span id="projectnumber">DAWN1.1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Dual 128 bit Index Table<div class="ingroups"><a class="el" href="group__contractdev.html">How To Write Contracts</a> &raquo; <a class="el" href="group__database.html">Database API</a> &raquo; <a class="el" href="group__database_c.html">Database C API</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Interface to a database table with 128 bit primary and secondary keys and arbitary binary data value.  
<a href="#details">More...</a></p>
<div class="dynheader">
Collaboration diagram for Dual 128 bit Index Table:</div>
<div class="dyncontent">
<center><table><tr><td><img src="group__dbi128i128.png" border="0" alt="" usemap="#group____dbi128i128"/>
<map name="group____dbi128i128" id="group____dbi128i128">
<area shape="rect" id="node1" href="group__database_c.html" title="C APIs for interfacing with the database. " alt="" coords="5,13,124,39"/>
</map>
</td></tr></table></center>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga2bb7fe30012390ea4e10e609299f2155"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dbi128i128.html#ga2bb7fe30012390ea4e10e609299f2155">load_primary_i128i128</a> (<a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a> scope, <a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a> code, <a class="el" href="group__types.html#ga1d259d7ad615daec723290ee9f766dc5">TableName</a> table, void *data, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="separator:ga2bb7fe30012390ea4e10e609299f2155"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga907424d3d864f3ce6afaf5a26e516a03"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dbi128i128.html#ga907424d3d864f3ce6afaf5a26e516a03">front_primary_i128i128</a> (<a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a> scope, <a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a> code, <a class="el" href="group__types.html#ga1d259d7ad615daec723290ee9f766dc5">TableName</a> table, void *data, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="separator:ga907424d3d864f3ce6afaf5a26e516a03"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf0a1acf3fb55de991ed41f5b4b6b33fd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dbi128i128.html#gaf0a1acf3fb55de991ed41f5b4b6b33fd">back_primary_i128i128</a> (<a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a> scope, <a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a> code, <a class="el" href="group__types.html#ga1d259d7ad615daec723290ee9f766dc5">TableName</a> table, void *data, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="separator:gaf0a1acf3fb55de991ed41f5b4b6b33fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga721a804094248ad5cd0258d1331e01ad"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dbi128i128.html#ga721a804094248ad5cd0258d1331e01ad">next_primary_i128i128</a> (<a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a> scope, <a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a> code, <a class="el" href="group__types.html#ga1d259d7ad615daec723290ee9f766dc5">TableName</a> table, void *data, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="separator:ga721a804094248ad5cd0258d1331e01ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0935655dcd38bf75689f6fdba89ed2a6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dbi128i128.html#ga0935655dcd38bf75689f6fdba89ed2a6">previous_primary_i128i128</a> (<a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a> scope, <a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a> code, <a class="el" href="group__types.html#ga1d259d7ad615daec723290ee9f766dc5">TableName</a> table, void *data, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="separator:ga0935655dcd38bf75689f6fdba89ed2a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga12ee33f116f3125d446d406613fbda23"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dbi128i128.html#ga12ee33f116f3125d446d406613fbda23">upper_bound_primary_i128i128</a> (<a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a> scope, <a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a> code, <a class="el" href="group__types.html#ga1d259d7ad615daec723290ee9f766dc5">TableName</a> table, void *data, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="separator:ga12ee33f116f3125d446d406613fbda23"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1bacfd3c7f7bf6828a16cc7d862187de"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dbi128i128.html#ga1bacfd3c7f7bf6828a16cc7d862187de">lower_bound_primary_i128i128</a> (<a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a> scope, <a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a> code, <a class="el" href="group__types.html#ga1d259d7ad615daec723290ee9f766dc5">TableName</a> table, void *data, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="separator:ga1bacfd3c7f7bf6828a16cc7d862187de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad1a4c055d3e10987f93cc8e13bdbec5b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dbi128i128.html#gad1a4c055d3e10987f93cc8e13bdbec5b">load_secondary_i128i128</a> (<a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a> scope, <a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a> code, <a class="el" href="group__types.html#ga1d259d7ad615daec723290ee9f766dc5">TableName</a> table, void *data, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="separator:gad1a4c055d3e10987f93cc8e13bdbec5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3cc7908249136e1b0f6ef00fd068770d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dbi128i128.html#ga3cc7908249136e1b0f6ef00fd068770d">front_secondary_i128i128</a> (<a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a> scope, <a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a> code, <a class="el" href="group__types.html#ga1d259d7ad615daec723290ee9f766dc5">TableName</a> table, void *data, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="separator:ga3cc7908249136e1b0f6ef00fd068770d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3f5654fc7a706aa7f9b042583606b945"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dbi128i128.html#ga3f5654fc7a706aa7f9b042583606b945">back_secondary_i128i128</a> (<a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a> scope, <a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a> code, <a class="el" href="group__types.html#ga1d259d7ad615daec723290ee9f766dc5">TableName</a> table, void *data, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="separator:ga3f5654fc7a706aa7f9b042583606b945"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga71361d26b3108c956f7533da92f3613d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dbi128i128.html#ga71361d26b3108c956f7533da92f3613d">next_secondary_i128i128</a> (<a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a> scope, <a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a> code, <a class="el" href="group__types.html#ga1d259d7ad615daec723290ee9f766dc5">TableName</a> table, void *data, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="separator:ga71361d26b3108c956f7533da92f3613d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0c2f47cfd47d258ca9464b5f353881e7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dbi128i128.html#ga0c2f47cfd47d258ca9464b5f353881e7">previous_secondary_i128i128</a> (<a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a> scope, <a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a> code, <a class="el" href="group__types.html#ga1d259d7ad615daec723290ee9f766dc5">TableName</a> table, void *data, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="separator:ga0c2f47cfd47d258ca9464b5f353881e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9595c490f547c86b57059191273b8d2e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dbi128i128.html#ga9595c490f547c86b57059191273b8d2e">upper_bound_secondary_i128i128</a> (<a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a> scope, <a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a> code, <a class="el" href="group__types.html#ga1d259d7ad615daec723290ee9f766dc5">TableName</a> table, void *data, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="separator:ga9595c490f547c86b57059191273b8d2e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga99eb8d4703ac0c397e2e2031eb6f8751"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dbi128i128.html#ga99eb8d4703ac0c397e2e2031eb6f8751">lower_bound_secondary_i128i128</a> (<a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a> scope, <a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a> code, <a class="el" href="group__types.html#ga1d259d7ad615daec723290ee9f766dc5">TableName</a> table, void *data, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="separator:ga99eb8d4703ac0c397e2e2031eb6f8751"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac37d24bc77e149aba9a7e546ec6cb639"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dbi128i128.html#gac37d24bc77e149aba9a7e546ec6cb639">remove_i128i128</a> (<a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a> scope, <a class="el" href="group__types.html#ga1d259d7ad615daec723290ee9f766dc5">TableName</a> table, const void *data)</td></tr>
<tr class="separator:gac37d24bc77e149aba9a7e546ec6cb639"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab4dab9bf33ada70433d3f0950cf35ddd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dbi128i128.html#gab4dab9bf33ada70433d3f0950cf35ddd">store_i128i128</a> (<a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a> scope, <a class="el" href="group__types.html#ga1d259d7ad615daec723290ee9f766dc5">TableName</a> table, const void *data, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="separator:gab4dab9bf33ada70433d3f0950cf35ddd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga98e823e78f8a1caf256be99480b1c397"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dbi128i128.html#ga98e823e78f8a1caf256be99480b1c397">update_i128i128</a> (<a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a> scope, <a class="el" href="group__types.html#ga1d259d7ad615daec723290ee9f766dc5">TableName</a> table, const void *data, <a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a> len)</td></tr>
<tr class="separator:ga98e823e78f8a1caf256be99480b1c397"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scope</td><td>- the account where table data will be found </td></tr>
    <tr><td class="paramname">code</td><td>- the code which owns the table </td></tr>
    <tr><td class="paramname">table</td><td>- the name of the table where record is stored </td></tr>
    <tr><td class="paramname">data</td><td>- a pointer to memory that is at least 32 bytes long </td></tr>
    <tr><td class="paramname">len</td><td>- the length of data, must be greater than or equal to 32 bytes</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the total number of bytes read or -1 for "not found" or "end" where bytes read includes 32 bytes of the key</dd></dl>
<p>These methods assume a database table with records of the form:</p>
<div class="fragment"><div class="line"><span class="keyword">struct </span>Record {</div><div class="line">   uint128  <a class="code" href="test__db_8cpp.html#af15b5e608a0fbe8c184ab90b3791413f">primary</a>;</div><div class="line">   uint128  <a class="code" href="test__db_8cpp.html#a52c20999685338b5763f129033f2c1d9">secondary</a>;</div><div class="line">   ... arbitrary data ...</div><div class="line">};</div></div><!-- fragment --><p>You can iterate over these indicies with primary index sorting records by { primary, secondary } and the secondary index sorting records by { secondary, primary }. This means that duplicates of the primary or secondary values are allowed so long as there are no duplicates of the combination {primary, secondary}.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="struct_table.html">Table</a> class in C++ API</dd></dl>
<p>Example </p><div class="fragment"><div class="line"> <span class="keyword">struct </span><a class="code" href="struct_test_model128x2.html">TestModel128x2</a> {</div><div class="line">    <a class="code" href="group__types.html#ga396787e5ec029b1205bd3e4cd9763e7d">uint128_t</a> <a class="code" href="struct_test_model128x2.html#ab84c4ac3eb98dbdfe703aa77c5bc6b75">number</a>;</div><div class="line">    <a class="code" href="group__types.html#ga396787e5ec029b1205bd3e4cd9763e7d">uint128_t</a> <a class="code" href="struct_test_model128x2.html#ab222dabb3fb2f46837fc24d976444044">price</a>;</div><div class="line">    <a class="code" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a>  <a class="code" href="struct_test_model128x2.html#a9901da3a61304bbd080413fa7112dacc">extra</a>;</div><div class="line">    <a class="code" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a>  <a class="code" href="struct_test_model128x2.html#a4b04b40b8a51cb9eddc260f644aafcd3">table_name</a>;</div><div class="line"> };</div><div class="line"></div><div class="line"> <a class="code" href="struct_test_model128x2.html">TestModel128x2</a> alice{0, 500, <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(alice), <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(<a class="code" href="struct_test_model128x2.html#a4b04b40b8a51cb9eddc260f644aafcd3">table_name</a>)};</div><div class="line"> <a class="code" href="struct_test_model128x2.html">TestModel128x2</a> bob{1, 1000, <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(bob), <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(<a class="code" href="struct_test_model128x2.html#a4b04b40b8a51cb9eddc260f644aafcd3">table_name</a>)};</div><div class="line"> <a class="code" href="struct_test_model128x2.html">TestModel128x2</a> carol{2, 1500, <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(carol), <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(<a class="code" href="struct_test_model128x2.html#a4b04b40b8a51cb9eddc260f644aafcd3">table_name</a>)};</div><div class="line"> <a class="code" href="struct_test_model128x2.html">TestModel128x2</a> dave{3, 2000, <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(dave), <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(<a class="code" href="struct_test_model128x2.html#a4b04b40b8a51cb9eddc260f644aafcd3">table_name</a>)};</div><div class="line"> <a class="code" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> res = <a class="code" href="group__dbi128i128.html#gab4dab9bf33ada70433d3f0950cf35ddd">store_i128i128</a>(CurrentCode(), <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(<a class="code" href="struct_test_model128x2.html#a4b04b40b8a51cb9eddc260f644aafcd3">table_name</a>), &amp;alice, <span class="keyword">sizeof</span>(<a class="code" href="struct_test_model128x2.html">TestModel128x2</a>));</div><div class="line"> res = <a class="code" href="group__dbi128i128.html#gab4dab9bf33ada70433d3f0950cf35ddd">store_i128i128</a>(CurrentCode(), <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(<a class="code" href="struct_test_model128x2.html#a4b04b40b8a51cb9eddc260f644aafcd3">table_name</a>), &amp;bob, <span class="keyword">sizeof</span>(<a class="code" href="struct_test_model128x2.html">TestModel128x2</a>));</div><div class="line"> ASSERT(res == 1, <span class="stringliteral">&quot;db store failed&quot;</span>);</div><div class="line"> res = <a class="code" href="group__dbi128i128.html#gab4dab9bf33ada70433d3f0950cf35ddd">store_i128i128</a>(CurrentCode(), <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(<a class="code" href="struct_test_model128x2.html#a4b04b40b8a51cb9eddc260f644aafcd3">table_name</a>), &amp;carol, <span class="keyword">sizeof</span>(<a class="code" href="struct_test_model128x2.html">TestModel128x2</a>));</div><div class="line"> ASSERT(res == 1, <span class="stringliteral">&quot;db store failed&quot;</span>);</div><div class="line"> res = <a class="code" href="group__dbi128i128.html#gab4dab9bf33ada70433d3f0950cf35ddd">store_i128i128</a>(CurrentCode(), <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(<a class="code" href="struct_test_model128x2.html#a4b04b40b8a51cb9eddc260f644aafcd3">table_name</a>), &amp;dave, <span class="keyword">sizeof</span>(<a class="code" href="struct_test_model128x2.html">TestModel128x2</a>));</div><div class="line"> ASSERT(res == 1, <span class="stringliteral">&quot;db store failed&quot;</span>);</div><div class="line"></div><div class="line"> <a class="code" href="struct_test_model128x2.html">TestModel128x2</a> query;</div><div class="line"> query.<a class="code" href="struct_test_model128x2.html#ab84c4ac3eb98dbdfe703aa77c5bc6b75">number</a> = 0;</div><div class="line"> res = <a class="code" href="group__dbi128i128.html#ga2bb7fe30012390ea4e10e609299f2155">load_primary_i128i128</a>(CurrentCode(), CurrentCode(), <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(<a class="code" href="struct_test_model128x2.html#a4b04b40b8a51cb9eddc260f644aafcd3">table_name</a>), &amp;query, <span class="keyword">sizeof</span>(<a class="code" href="struct_test_model128x2.html">TestModel128x2</a>));</div><div class="line"> ASSERT(res == <span class="keyword">sizeof</span>(<a class="code" href="struct_test_model128x2.html">TestModel128x2</a>) &amp;&amp; query.<a class="code" href="struct_test_model128x2.html#ab84c4ac3eb98dbdfe703aa77c5bc6b75">number</a> == 0 &amp;&amp; query.<a class="code" href="struct_test_model128x2.html#ab222dabb3fb2f46837fc24d976444044">price</a> == 500 &amp;&amp; query.<a class="code" href="struct_test_model128x2.html#a9901da3a61304bbd080413fa7112dacc">extra</a> == <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(alice), <span class="stringliteral">&quot;load&quot;</span>);</div><div class="line"></div><div class="line"> res = <a class="code" href="group__dbi128i128.html#ga907424d3d864f3ce6afaf5a26e516a03">front_primary_i128i128</a>(CurrentCode(), CurrentCode(), <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(<a class="code" href="struct_test_model128x2.html#a4b04b40b8a51cb9eddc260f644aafcd3">table_name</a>), &amp;query, <span class="keyword">sizeof</span>(<a class="code" href="struct_test_model128x2.html">TestModel128x2</a>));</div><div class="line"> ASSERT(res == <span class="keyword">sizeof</span>(<a class="code" href="struct_test_model128x2.html">TestModel128x2</a>) &amp;&amp; query.<a class="code" href="struct_test_model128x2.html#ab84c4ac3eb98dbdfe703aa77c5bc6b75">number</a> == 3 &amp;&amp; query.<a class="code" href="struct_test_model128x2.html#ab222dabb3fb2f46837fc24d976444044">price</a> = 2000 &amp;&amp; query.<a class="code" href="struct_test_model128x2.html#a9901da3a61304bbd080413fa7112dacc">extra</a> == <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(dave), <span class="stringliteral">&quot;front&quot;</span>);</div><div class="line"></div><div class="line"> res = <a class="code" href="group__dbi128i128.html#ga721a804094248ad5cd0258d1331e01ad">next_primary_i128i128</a>(CurrentCode(), CurrentCode(), <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(<a class="code" href="struct_test_model128x2.html#a4b04b40b8a51cb9eddc260f644aafcd3">table_name</a>), &amp; query, <span class="keyword">sizeof</span>(<a class="code" href="struct_test_model128x2.html">TestModel128x2</a>));</div><div class="line"> ASSERT(res == <span class="keyword">sizeof</span>(<a class="code" href="struct_test_model128x2.html">TestModel128x2</a>) &amp;&amp; query.<a class="code" href="struct_test_model128x2.html#ab84c4ac3eb98dbdfe703aa77c5bc6b75">number</a> == 2 &amp;&amp; query.<a class="code" href="struct_test_model128x2.html#ab222dabb3fb2f46837fc24d976444044">price</a> == 1500 &amp;&amp; query.<a class="code" href="struct_test_model128x2.html#a9901da3a61304bbd080413fa7112dacc">extra</a> == <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(carol), <span class="stringliteral">&quot;next&quot;</span>);</div><div class="line"></div><div class="line"> res = <a class="code" href="group__dbi128i128.html#gaf0a1acf3fb55de991ed41f5b4b6b33fd">back_primary_i128i128</a>(CurrentCode(), CurrentCode(), <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(<a class="code" href="struct_test_model128x2.html#a4b04b40b8a51cb9eddc260f644aafcd3">table_name</a>), &amp;query, <span class="keyword">sizeof</span>(<a class="code" href="struct_test_model128x2.html">TestModel128x2</a>));</div><div class="line"> ASSERT(res == <span class="keyword">sizeof</span>(<a class="code" href="struct_test_model128x2.html">TestModel128x2</a>) &amp;&amp; query.<a class="code" href="struct_test_model128x2.html#ab84c4ac3eb98dbdfe703aa77c5bc6b75">number</a> == 0 &amp;&amp; query.<a class="code" href="struct_test_model128x2.html#ab222dabb3fb2f46837fc24d976444044">price</a> == 500 &amp;&amp; query.<a class="code" href="struct_test_model128x2.html#a9901da3a61304bbd080413fa7112dacc">extra</a> == <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(alice), <span class="stringliteral">&quot;back&quot;</span>);</div><div class="line"></div><div class="line"> res = <a class="code" href="group__dbi128i128.html#ga0935655dcd38bf75689f6fdba89ed2a6">previous_primary_i128i128</a>(CurrentCode(), CurrentCode(), <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(<a class="code" href="struct_test_model128x2.html#a4b04b40b8a51cb9eddc260f644aafcd3">table_name</a>), &amp;query, <span class="keyword">sizeof</span>(<a class="code" href="struct_test_model128x2.html">TestModel128x2</a>));</div><div class="line"> ASSERT(res == <span class="keyword">sizeof</span>(<a class="code" href="struct_test_model128x2.html">TestModel128x2</a>) &amp;&amp; query.<a class="code" href="struct_test_model128x2.html#ab84c4ac3eb98dbdfe703aa77c5bc6b75">number</a> == 1 &amp;&amp; query.<a class="code" href="struct_test_model128x2.html#ab222dabb3fb2f46837fc24d976444044">price</a> == 1000 &amp;&amp; query.<a class="code" href="struct_test_model128x2.html#a9901da3a61304bbd080413fa7112dacc">extra</a> == <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(bob), <span class="stringliteral">&quot;previous&quot;</span>);</div><div class="line"></div><div class="line"> query.<a class="code" href="struct_test_model128x2.html#ab84c4ac3eb98dbdfe703aa77c5bc6b75">number</a> = 0;</div><div class="line"> res = <a class="code" href="group__dbi128i128.html#ga1bacfd3c7f7bf6828a16cc7d862187de">lower_bound_primary_i128i128</a>(CurrentCode(), CurrentCode(), <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(<a class="code" href="struct_test_model128x2.html#a4b04b40b8a51cb9eddc260f644aafcd3">table_name</a>), &amp;query, <span class="keyword">sizeof</span>(<a class="code" href="struct_test_model128x2.html">TestModel128x2</a>));</div><div class="line"> ASSERT(res == <span class="keyword">sizeof</span>(<a class="code" href="struct_test_model128x2.html">TestModel128x2</a>) &amp;&amp; query.<a class="code" href="struct_test_model128x2.html#ab84c4ac3eb98dbdfe703aa77c5bc6b75">number</a> == 0 &amp;&amp; query.<a class="code" href="struct_test_model128x2.html#ab222dabb3fb2f46837fc24d976444044">price</a> == 500 &amp;&amp; query.<a class="code" href="struct_test_model128x2.html#a9901da3a61304bbd080413fa7112dacc">extra</a> == <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(alice), <span class="stringliteral">&quot;lower&quot;</span>);</div><div class="line"></div><div class="line"> res = <a class="code" href="group__dbi128i128.html#ga12ee33f116f3125d446d406613fbda23">upper_bound_primary_i128i128</a>(CurrentCode(), CurrentCode(), <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(<a class="code" href="struct_test_model128x2.html#a4b04b40b8a51cb9eddc260f644aafcd3">table_name</a>), &amp;query, <span class="keyword">sizeof</span>(<a class="code" href="struct_test_model128x2.html">TestModel128x2</a>));</div><div class="line"> ASSERT(res == <span class="keyword">sizeof</span>(<a class="code" href="struct_test_model128x2.html">TestModel128x2</a>) &amp;&amp; query.<a class="code" href="struct_test_model128x2.html#ab84c4ac3eb98dbdfe703aa77c5bc6b75">number</a> == 1 &amp;&amp; query.<a class="code" href="struct_test_model128x2.html#ab222dabb3fb2f46837fc24d976444044">price</a> == 1000 &amp;&amp; query.<a class="code" href="struct_test_model128x2.html#a9901da3a61304bbd080413fa7112dacc">extra</a> == <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(bob), <span class="stringliteral">&quot;upper&quot;</span>);</div><div class="line"></div><div class="line">query.<a class="code" href="struct_test_model128x2.html#a9901da3a61304bbd080413fa7112dacc">extra</a> = <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(bobby);</div><div class="line">res = update_i128128(CurrentCode(), <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(<a class="code" href="struct_test_model128x2.html#a4b04b40b8a51cb9eddc260f644aafcd3">table_name</a>), &amp;query, <span class="keyword">sizeof</span>(<a class="code" href="struct_test_model128x2.html">TestModel128x2</a>));</div><div class="line">ASSERT(res == <span class="keyword">sizeof</span>(<a class="code" href="struct_test_model128x2.html">TestModel128x2</a>) &amp;&amp; query.<a class="code" href="struct_test_model128x2.html#ab84c4ac3eb98dbdfe703aa77c5bc6b75">number</a> == 1 &amp; query.<a class="code" href="struct_test_model128x2.html#ab222dabb3fb2f46837fc24d976444044">price</a> == 1000 &amp;&amp; query.<a class="code" href="struct_test_model128x2.html#a9901da3a61304bbd080413fa7112dacc">extra</a> == <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(bobby), <span class="stringliteral">&quot;update&quot;</span>);</div><div class="line"></div><div class="line">res = remove_i128128(CurrentCode(), <a class="code" href="group__types.html#gaf9c1edb0e0da55ec6ba09f32f6839529">N</a>(<a class="code" href="struct_test_model128x2.html#a4b04b40b8a51cb9eddc260f644aafcd3">table_name</a>), &amp;query, <span class="keyword">sizeof</span>(<a class="code" href="struct_test_model128x2.html">TestModel128x2</a>));</div><div class="line">ASSERT(res == 1, <span class="stringliteral">&quot;remove&quot;</span>)</div></div><!-- fragment --> <h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="gaf0a1acf3fb55de991ed41f5b4b6b33fd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> back_primary_i128i128 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a>&#160;</td>
          <td class="paramname"><em>scope</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a>&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga1d259d7ad615daec723290ee9f766dc5">TableName</a>&#160;</td>
          <td class="paramname"><em>table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scope</td><td>- the account scope that will be read, must exist in the transaction scopes list </td></tr>
    <tr><td class="paramname">code</td><td>- identifies the code that controls write-access to the data </td></tr>
    <tr><td class="paramname">table</td><td>- the ID/name of the table within the scope/code context to query </td></tr>
    <tr><td class="paramname">data</td><td>- location to copy the back record of primary key </td></tr>
    <tr><td class="paramname">len</td><td>- the maximum length of data to read, must be greater than sizeof(uint64_t)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bytes read or -1 if no record found </dd></dl>

</div>
</div>
<a class="anchor" id="ga3f5654fc7a706aa7f9b042583606b945"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> back_secondary_i128i128 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a>&#160;</td>
          <td class="paramname"><em>scope</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a>&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga1d259d7ad615daec723290ee9f766dc5">TableName</a>&#160;</td>
          <td class="paramname"><em>table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scope</td><td>- the account scope that will be read, must exist in the transaction scopes list </td></tr>
    <tr><td class="paramname">code</td><td>- identifies the code that controls write-access to the data </td></tr>
    <tr><td class="paramname">table</td><td>- the ID/name of the table within the scope/code context to query </td></tr>
    <tr><td class="paramname">data</td><td>- location to copy the back record of secondary key </td></tr>
    <tr><td class="paramname">len</td><td>- the maximum length of data to read, must be greater than sizeof(uint64_t)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bytes read or -1 if no record found </dd></dl>

</div>
</div>
<a class="anchor" id="ga907424d3d864f3ce6afaf5a26e516a03"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> front_primary_i128i128 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a>&#160;</td>
          <td class="paramname"><em>scope</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a>&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga1d259d7ad615daec723290ee9f766dc5">TableName</a>&#160;</td>
          <td class="paramname"><em>table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scope</td><td>- the account scope that will be read, must exist in the transaction scopes list </td></tr>
    <tr><td class="paramname">code</td><td>- identifies the code that controls write-access to the data </td></tr>
    <tr><td class="paramname">table</td><td>- the ID/name of the table within the scope/code context to query </td></tr>
    <tr><td class="paramname">data</td><td>- location to copy the front record of primary key </td></tr>
    <tr><td class="paramname">len</td><td>- the maximum length of data to read, must be greater than sizeof(uint64_t)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bytes read or -1 if no record found </dd></dl>

</div>
</div>
<a class="anchor" id="ga3cc7908249136e1b0f6ef00fd068770d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> front_secondary_i128i128 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a>&#160;</td>
          <td class="paramname"><em>scope</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a>&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga1d259d7ad615daec723290ee9f766dc5">TableName</a>&#160;</td>
          <td class="paramname"><em>table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scope</td><td>- the account scope that will be read, must exist in the transaction scopes list </td></tr>
    <tr><td class="paramname">code</td><td>- identifies the code that controls write-access to the data </td></tr>
    <tr><td class="paramname">table</td><td>- the ID/name of the table within the scope/code context to query </td></tr>
    <tr><td class="paramname">data</td><td>- location to copy the front record of secondary key </td></tr>
    <tr><td class="paramname">len</td><td>- the maximum length of data to read, must be greater than sizeof(uint64_t)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bytes read or -1 if no record found </dd></dl>

</div>
</div>
<a class="anchor" id="ga2bb7fe30012390ea4e10e609299f2155"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> load_primary_i128i128 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a>&#160;</td>
          <td class="paramname"><em>scope</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a>&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga1d259d7ad615daec723290ee9f766dc5">TableName</a>&#160;</td>
          <td class="paramname"><em>table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scope</td><td>- the account scope that will be read, must exist in the transaction scopes list </td></tr>
    <tr><td class="paramname">code</td><td>- the code which owns the table </td></tr>
    <tr><td class="paramname">table</td><td>- the ID/name of the table within the current scope/code context to modify </td></tr>
    <tr><td class="paramname">data</td><td>- location to copy the record, must be initialized with the primary key to load </td></tr>
    <tr><td class="paramname">len</td><td>- length of record to copy </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bytes read, -1 if key was not found</dd></dl>
<dl class="section pre"><dt>Precondition</dt><dd>len &gt;= sizeof(uint128_t) </dd>
<dd>
data is a valid pointer to a range of memory at least datalen bytes long </dd>
<dd>
*((uint128_t*)data) stores the primary key </dd>
<dd>
scope is declared by the current transaction </dd>
<dd>
this method is being called from an apply context (not validate or precondition)</dd></dl>
<dl class="section post"><dt>Postcondition</dt><dd>data will be initialized with the len bytes of record matching the key.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">if</td><td>called with an invalid precondition execution will be aborted </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gad1a4c055d3e10987f93cc8e13bdbec5b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> load_secondary_i128i128 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a>&#160;</td>
          <td class="paramname"><em>scope</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a>&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga1d259d7ad615daec723290ee9f766dc5">TableName</a>&#160;</td>
          <td class="paramname"><em>table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scope</td><td>- the account scope that will be read, must exist in the transaction scopes list </td></tr>
    <tr><td class="paramname">code</td><td>- the code which owns the table </td></tr>
    <tr><td class="paramname">table</td><td>- the ID/name of the table within the current scope/code context to modify </td></tr>
    <tr><td class="paramname">data</td><td>- location to copy the record, must be initialized with the secondary key to load </td></tr>
    <tr><td class="paramname">len</td><td>- length of record to copy </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bytes read, -1 if key was not found</dd></dl>
<dl class="section pre"><dt>Precondition</dt><dd>len &gt;= sizeof(uint128_t) </dd>
<dd>
data is a valid pointer to a range of memory at least datalen bytes long </dd>
<dd>
*((uint128_t*)data) stores the secondary key </dd>
<dd>
scope is declared by the current transaction </dd>
<dd>
this method is being called from an apply context (not validate or precondition)</dd></dl>
<dl class="section post"><dt>Postcondition</dt><dd>data will be initialized with the len bytes of record matching the key.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">if</td><td>called with an invalid precondition execution will be aborted </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga1bacfd3c7f7bf6828a16cc7d862187de"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> lower_bound_primary_i128i128 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a>&#160;</td>
          <td class="paramname"><em>scope</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a>&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga1d259d7ad615daec723290ee9f766dc5">TableName</a>&#160;</td>
          <td class="paramname"><em>table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scope</td><td>- the account scope that will be read, must exist in the transaction scopes list </td></tr>
    <tr><td class="paramname">code</td><td>- identifies the code that controls write-access to the data </td></tr>
    <tr><td class="paramname">table</td><td>- the ID/name of the table within the scope/code context to query </td></tr>
    <tr><td class="paramname">data</td><td>- location to copy the lower bound of a primary key; must be initialized with a key. </td></tr>
    <tr><td class="paramname">len</td><td>- the maximum length of data to read, must be greater than sizeof(uint64_t)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bytes read or -1 if no record found </dd></dl>

</div>
</div>
<a class="anchor" id="ga99eb8d4703ac0c397e2e2031eb6f8751"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> lower_bound_secondary_i128i128 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a>&#160;</td>
          <td class="paramname"><em>scope</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a>&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga1d259d7ad615daec723290ee9f766dc5">TableName</a>&#160;</td>
          <td class="paramname"><em>table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scope</td><td>- the account scope that will be read, must exist in the transaction scopes list </td></tr>
    <tr><td class="paramname">code</td><td>- identifies the code that controls write-access to the data </td></tr>
    <tr><td class="paramname">table</td><td>- the ID/name of the table within the scope/code context to query </td></tr>
    <tr><td class="paramname">data</td><td>- location to copy the lower bound of given secondary key; must be initialized with a key. </td></tr>
    <tr><td class="paramname">len</td><td>- the maximum length of data to read, must be greater than sizeof(uint64_t)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bytes read or -1 if no record found </dd></dl>

</div>
</div>
<a class="anchor" id="ga721a804094248ad5cd0258d1331e01ad"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> next_primary_i128i128 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a>&#160;</td>
          <td class="paramname"><em>scope</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a>&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga1d259d7ad615daec723290ee9f766dc5">TableName</a>&#160;</td>
          <td class="paramname"><em>table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scope</td><td>- the account scope that will be read, must exist in the transaction scopes list </td></tr>
    <tr><td class="paramname">code</td><td>- identifies the code that controls write-access to the data </td></tr>
    <tr><td class="paramname">table</td><td>- the ID/name of the table within the scope/code context to query </td></tr>
    <tr><td class="paramname">data</td><td>- location to copy the next record of primary key; must be initialized with a key. </td></tr>
    <tr><td class="paramname">len</td><td>- the maximum length of data to read, must be greater than sizeof(uint64_t)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bytes read or -1 if no record found </dd></dl>

</div>
</div>
<a class="anchor" id="ga71361d26b3108c956f7533da92f3613d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> next_secondary_i128i128 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a>&#160;</td>
          <td class="paramname"><em>scope</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a>&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga1d259d7ad615daec723290ee9f766dc5">TableName</a>&#160;</td>
          <td class="paramname"><em>table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scope</td><td>- the account scope that will be read, must exist in the transaction scopes list </td></tr>
    <tr><td class="paramname">code</td><td>- identifies the code that controls write-access to the data </td></tr>
    <tr><td class="paramname">table</td><td>- the ID/name of the table within the scope/code context to query </td></tr>
    <tr><td class="paramname">data</td><td>- location to copy the next record of secondary key; must be initialized with a key. </td></tr>
    <tr><td class="paramname">len</td><td>- the maximum length of data to read, must be greater than sizeof(uint64_t)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bytes read or -1 if no record found </dd></dl>

</div>
</div>
<a class="anchor" id="ga0935655dcd38bf75689f6fdba89ed2a6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> previous_primary_i128i128 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a>&#160;</td>
          <td class="paramname"><em>scope</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a>&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga1d259d7ad615daec723290ee9f766dc5">TableName</a>&#160;</td>
          <td class="paramname"><em>table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scope</td><td>- the account scope that will be read, must exist in the transaction scopes list </td></tr>
    <tr><td class="paramname">code</td><td>- identifies the code that controls write-access to the data </td></tr>
    <tr><td class="paramname">table</td><td>- the ID/name of the table within the scope/code context to query </td></tr>
    <tr><td class="paramname">data</td><td>- location to copy the previous record of primary key; must be initialized with a key. </td></tr>
    <tr><td class="paramname">len</td><td>- the maximum length of data to read, must be greater than sizeof(uint64_t)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bytes read or -1 if no record found </dd></dl>

</div>
</div>
<a class="anchor" id="ga0c2f47cfd47d258ca9464b5f353881e7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> previous_secondary_i128i128 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a>&#160;</td>
          <td class="paramname"><em>scope</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a>&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga1d259d7ad615daec723290ee9f766dc5">TableName</a>&#160;</td>
          <td class="paramname"><em>table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scope</td><td>- the account scope that will be read, must exist in the transaction scopes list </td></tr>
    <tr><td class="paramname">code</td><td>- identifies the code that controls write-access to the data </td></tr>
    <tr><td class="paramname">table</td><td>- the ID/name of the table within the scope/code context to query </td></tr>
    <tr><td class="paramname">data</td><td>- location to copy the previous record of secondary key; must be initialized with a key. </td></tr>
    <tr><td class="paramname">len</td><td>- the maximum length of data to read, must be greater than sizeof(uint64_t)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bytes read or -1 if no record found </dd></dl>

</div>
</div>
<a class="anchor" id="gac37d24bc77e149aba9a7e546ec6cb639"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> remove_i128i128 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a>&#160;</td>
          <td class="paramname"><em>scope</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga1d259d7ad615daec723290ee9f766dc5">TableName</a>&#160;</td>
          <td class="paramname"><em>table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const void *&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scope</td><td>- the account scope that will be read, must exist in the transaction scopes list </td></tr>
    <tr><td class="paramname">table</td><td>- the ID/name of the table within the scope/code context to query </td></tr>
    <tr><td class="paramname">data</td><td>- must point to at lest 32 bytes containing {primary,secondary}</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 if a record was removed, and 0 if no record with key was found </dd></dl>

</div>
</div>
<a class="anchor" id="gab4dab9bf33ada70433d3f0950cf35ddd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> store_i128i128 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a>&#160;</td>
          <td class="paramname"><em>scope</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga1d259d7ad615daec723290ee9f766dc5">TableName</a>&#160;</td>
          <td class="paramname"><em>table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scope</td><td>- the account scope that will be read, must exist in the transaction scopes list </td></tr>
    <tr><td class="paramname">table</td><td>- the ID/name of the table within the scope/code context to query </td></tr>
    <tr><td class="paramname">data</td><td>- must point to a at least 32 bytes containing (primary, secondary) </td></tr>
    <tr><td class="paramname">len</td><td>- the length of the data </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 if a new record was created, 0 if an existing record was updated </dd></dl>

</div>
</div>
<a class="anchor" id="ga98e823e78f8a1caf256be99480b1c397"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> update_i128i128 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a>&#160;</td>
          <td class="paramname"><em>scope</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga1d259d7ad615daec723290ee9f766dc5">TableName</a>&#160;</td>
          <td class="paramname"><em>table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scope</td><td>- the account scope that will be read, must exist in the transaction scopes list </td></tr>
    <tr><td class="paramname">table</td><td>- the ID/name of the table within the scope/code context to query </td></tr>
    <tr><td class="paramname">data</td><td>- must to a at least 32 bytes containing (primary, secondary) </td></tr>
    <tr><td class="paramname">len</td><td>- the length of the data </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 if the record was updated, 0 if no record with key was found </dd></dl>

</div>
</div>
<a class="anchor" id="ga12ee33f116f3125d446d406613fbda23"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> upper_bound_primary_i128i128 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a>&#160;</td>
          <td class="paramname"><em>scope</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a>&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga1d259d7ad615daec723290ee9f766dc5">TableName</a>&#160;</td>
          <td class="paramname"><em>table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scope</td><td>- the account scope that will be read, must exist in the transaction scopes list </td></tr>
    <tr><td class="paramname">code</td><td>- identifies the code that controls write-access to the data </td></tr>
    <tr><td class="paramname">table</td><td>- the ID/name of the table within the scope/code context to query </td></tr>
    <tr><td class="paramname">data</td><td>- location to copy the upper bound of a primary key; must be initialized with a key. </td></tr>
    <tr><td class="paramname">len</td><td>- the maximum length of data to read, must be greater than sizeof(uint64_t)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bytes read or -1 if no record found </dd></dl>

</div>
</div>
<a class="anchor" id="ga9595c490f547c86b57059191273b8d2e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__types.html#ga0d2e949ab6a1bb62f1b295cc79bc1f60">int32_t</a> upper_bound_secondary_i128i128 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a>&#160;</td>
          <td class="paramname"><em>scope</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#gad67b43dc23285b01176f4c181c59fc23">AccountName</a>&#160;</td>
          <td class="paramname"><em>code</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga1d259d7ad615daec723290ee9f766dc5">TableName</a>&#160;</td>
          <td class="paramname"><em>table</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#ga06896e8c53f721507066c079052171f8">uint32_t</a>&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scope</td><td>- the account scope that will be read, must exist in the transaction scopes list </td></tr>
    <tr><td class="paramname">code</td><td>- identifies the code that controls write-access to the data </td></tr>
    <tr><td class="paramname">table</td><td>- the ID/name of the table within the scope/code context to query </td></tr>
    <tr><td class="paramname">data</td><td>- location to copy the upper bound of given secondary key; must be initialized with a key. </td></tr>
    <tr><td class="paramname">len</td><td>- the maximum length of data to read, must be greater than sizeof(uint64_t)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the number of bytes read or -1 if no record found </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
